REPLICATION INFORMATION

These replication files allow one to replicate the tables, figures, and results reported in Anderson et. al's
	"Addressing Monotone Likelihood in Duration Modeling of Political Events,"
	as well as those reported in its Supplemental Appendix. 

In addition to this readme file, the set of uploaded replication materials include:

1. An "Empirical Applications" folder, that contains the following: 
	(a) An R script ("R code.R") that includes all code necessary to implement the main empirical applications (including Tables 2-5).
		R packages required: foreign, survival, flexsurv, coxphf.
	(b) Two Stata .dta datasets (regan2002.dta and tir2005civilwar.dta) that are used in each application (and by "R code.R").
	(c) A Stata do file (Stata Code.do) that is used with regan2002.dta to replicate Patrick
		Regan's (2002) original results (i.e., for the first application).

2. A "Figure 1" folder, which contains the necessary R-code needed to replicate Figure 1 in the main paper.  
	R packages required: survival.

3. A "Figure 2" folder, which contains the R-code and Monte Carlo output files (in csv format) needed to replicate Figure 2 in the main paper.
	The code for generating the Monte Carlo output files is found in item 4 below. 
	R packages required: ggplot2, grid, gridExtra.

4. An "MC Code and Output" folder, which contains the necessary code needed to replicate the paper's Monte Carlo (MC) experiments, the outputs
	from those MC experiments, and all code necessary to replicate Figures 1-14 in the Supplemental Appendix. All MC codes were run on Rx64 3.5.0 (Windows).
	 More specifically, this folder contains:
	(a) CoxSimOneFive.R, CoxSimThreeFive.R, & CoxSimFiveFive.R run each MC experiment and generate all MC output (in CSV file format).
		R packages required: car, mvtnorm, MASS, survival, msm, corpcor, dplyr, coxed, coxphf.
	(b) Plot_RMSEs.R, Plot_RMSEs_X2X3.R, & Plot_RMSEs_X4X5.R read in the MC output and plot the RMSE Supplemental Appendix Figures 2, 4, and 6.
		R packages required: foreign, grDevices, ggplot2.
	(c) Plot_MSEs.R, Plot_MSEs_X2X3.R, & Plot_MSEs_X4X5.R read in the MC output and plot the MSE Supplemental Appendix Figures 7, 8, and 9.
		R packages required: foreign, grDevices, ggplot2.
	(d) Plot_Nonconvergence.R, Plot_NonconvergencesX2X3.R, Plot_NonconvergencesX4X5.R, & Plot_Ratio2Nonconvergence.R read in the MC output and plot the 
		nonconvergence results presented in Supplemental Appendix Figures 1, 3, 5, 13, and 14.
		R packages required: ggplot2, grid, gridExtra.
	(e) Plot_Nonconvergence_Erroronly.R, Plot_NonconvergencesX2X3_Erroronly.R, & Plot_NonconvergencesX4X5_Erroronly.R, read in the MC output and plot the 
		nonconvergence results presented in Supplemental Appendix Figures 10, 11, 12.
		R packages required: ggplot2, grid, gridExtra.

Total R Packages (versions) required across items 1-4 above: car (3.0-2), mvtnorm (1.0-8), MASS (7.3-49), foreign (0.8-70), survival (2.44-1.1), flexsurv (1.1.1), msm (1.6.6), corpcor (1.6.9), dplyr (0.8.3), coxed (0.2.0), coxphf (1.13), ggplot2 (3.21), grid (base), grDevices (2.6.2), gridExtra (2.3).

Please contact Noel Anderson (noel.anderson@utoronto.ca), Benjamin E. Bagozzi (bagozzib@udel.edu), or Ore Koren (okoren@iu.edu) for any questions about these files.

